package com.weather.Service.impl;

import com.weather.Dao.WeatherDao;
import com.weather.Service.WeatherService;
import com.weather.domain.Weather;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WangKaiP
 * @Description
 * @create 2021-11-03 18:56
 */
@Service("WeatherService")
public class WeatherServiceImpl implements WeatherService {

    @Autowired
    private WeatherDao weatherDao;

    @Override
    public Weather findOneByID(Integer id) {
        return weatherDao.findOneByID(id);
    }

    @Override
    public void insertWeather(Weather weather) {
        weatherDao.insertWeather(weather);
    }
}
